<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script type="text/javascript" src="../js/jquery-3.3.1.js"></script>
<title>Insert title here</title>
</head>
<body>
<h1>JSONP测试</h1>
<script type="text/javascript">
	$(function(){
		$.ajax({
			 type: "get",
	         async:true,
	         url: "http://api.map.baidu.com/telematics/v3/weather?location=南京&output=json&ak=RBP3TTKEPsxxQ0iGxLzLowoA",
	         dataType: "jsonp",
	         success:function(data){
	        	 console.log(data);
	        	 //console.log(data.address);
	        	 var str = JSON.stringify(data); 
	        	 
		         console.log(str);
	         }
		});
	});
</script>
</body>
</html>